using System;
using System.Collections.Generic;
using System.Text;

namespace ChEngine
{
    partial class NegamaxEngine:IEngine
    {
        public IMoveGeneratorOld MoveGenerator
        {
            get { return moveGenerator; }
            set { moveGenerator = value; }
        }
        IMoveGeneratorOld moveGenerator;
        IOpeningBook openingBook;
        #region IEngine Members

        public event EventHandler<InfoMessageEventArgs> Message;

        protected virtual void OnMessage(string s)
        {
            if (null != Message)
                Message(this, new InfoMessageEventArgs(s));
        }

        public event EventHandler<EndGameEventArgs> EndGame;
        public IOpeningBook OpeningBook
        {
            get
            {
                return openingBook;
            }
            set
            {
                openingBook = value;
            }
        }

        #endregion
    }
}
